//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//

package com.lyq.bean.mySql;

import java.sql.Connection;
import java.sql.DriverManager;

public class MysqlLinking {
    public static Connection conn = null;

    public MysqlLinking() {
    }

    public void getLink() {
        try {
            String driver = "com.mysql.cj.jdbc.Driver";
            String url = "jdbc:mysql://localhost:3306/tablename?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=UTC";
            String user = "root";
            String password = "ltl2004";
            Class.forName(driver);
            conn = DriverManager.getConnection(url, user, password);
            if (conn == null) {
                System.out.println("数据库连接失败！！！");
            }
        } catch (Exception var5) {
            Exception e = var5;
            e.printStackTrace();
        }

    }
}